<?php
include_once('common/header.php');
if($AppUI->id <= 0 || (isset($_SESSION['product']) && ($_SESSION['product']&1<<1)==0)) {
	Vfriend_Function::redirect(HOST_BACKEND);
}
$strRefer	= isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : (HOST_BACKEND . 'product/index');
$intCateId 	= $objRequest->getParam('cate',0);
$intSubId	= $objRequest->getParam('sub',0);
if(isset($_SESSION['ppost']['pcategoryid'])) {
	$intCateId 	= $_SESSION['ppost']['pcategoryid'];
}
if(isset($_SESSION['ppost']['psubcategoryid'])) {
	$intSubId	= $_SESSION['ppost']['psubcategoryid'];
}
$objCommon = new Vfriend_Common();
$arrSubCate	 = $objCommon->getCategory($intCateId,9);
$this->view->arrCateId 		= $objCommon->getCategory(0,9);
$this->view->arrSubCateId 	= $arrSubCate;
$this->view->intCateId 		= $intCateId;
$this->view->intSubId 		= $intSubId;
$this->view->refer 			= $strRefer;
$this->view->arrLimited 	= $arrLimited;
$this->view->arrType 		= $arrType;
$this->view->arrHot 		= $arrHot;
?>